﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NF_Tools
{
    public partial class BF_TimeGrop : UserControl
    {
        public BF_TimeGrop()
        {
            InitializeComponent();
        }

        private string tyle;
        private string time;
        private string price;


        [Browsable(true), Category("自定义属性"), Description("包间类型")]
        public string Type
        {
            get { return tyle; }
            set 
            { 
                tyle = value;
                if (!string.IsNullOrWhiteSpace(tyle))
                    this.lblType.Text = tyle;
            }
        }

        [Browsable(true), Category("自定义属性"), Description("时间段")]
        public string Time
        {
            get { return time; }
            set 
            {
                time = value;
                if (!string.IsNullOrWhiteSpace(time))
                    lblTime.Text = time;
            }
        }


        [Browsable(true), Category("自定义属性"), Description("第3个价格 文本")]
        public string Price
        {
            get { return price; }
            set
            {
                price = value;
                if (!string.IsNullOrWhiteSpace(price))
                    txtPrice.Text = price;
            }
        }

        private void txtPrice_TextChanged(object sender, EventArgs e)
        {
            price = txtPrice.Text.Trim();
        }






    }
}
